void set_numverts(int nverts,int keep=0)
Parameter | Type | Description |
---|---|---|
nverts | int | new number of vertices |
keep | int | keep old vertices array |
None
This function is used to resize the vertex array of a mesh.
If keep is not zero, the newly allocated array will contain the data
from previous vertex array.
If new number of vertices is bigger then original vertex count, all old vertices
are maintained.
If new number of vertices is smaller then original vertex count, only the first
nvert vertices will be kept.